package com.ys.peony.model;

import java.io.Serializable;

/**
 * 车辆信息
 * Created by yml on 17/5/29.
 */

public class VehicleModel implements Serializable{

    private static final long serialVersionUID = 1582037383470375822L;
    private long id;//
    private int attribution_area;//车牌号-行政区划
    private long brand_id;//车辆品牌主键
    private long final_price;//
    private long kilometer;//公里数
    private long price;//
    private long vehicle_score;//
    private long vehicle_score_ratio;//
    private DateModel time_buying;//购买时间，yyyy-MM-dd格式
    private String brand_name;//品牌
    private String engine_number;//发动机号
    private String gps_situation;//
    private String origin;//产地
    private String ownership_person;//权属人
    private String ownership_tag;//权属标记
    private String plate_number;//车牌号
    private String vehicle_grade;//车辆配置
    private String vehicle_id;//车辆识别码
    private String vehicle_situation;//
    private String vehicle_type;//车辆型号

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public int getAttribution_area() {
        return attribution_area;
    }

    public void setAttribution_area(int attribution_area) {
        this.attribution_area = attribution_area;
    }

    public long getBrand_id() {
        return brand_id;
    }

    public void setBrand_id(long brand_id) {
        this.brand_id = brand_id;
    }

    public long getFinal_price() {
        return final_price;
    }

    public void setFinal_price(long final_price) {
        this.final_price = final_price;
    }

    public long getKilometer() {
        return kilometer;
    }

    public void setKilometer(long kilometer) {
        this.kilometer = kilometer;
    }

    public long getPrice() {
        return price;
    }

    public void setPrice(long price) {
        this.price = price;
    }

    public long getVehicle_score() {
        return vehicle_score;
    }

    public void setVehicle_score(long vehicle_score) {
        this.vehicle_score = vehicle_score;
    }

    public long getVehicle_score_ratio() {
        return vehicle_score_ratio;
    }

    public void setVehicle_score_ratio(long vehicle_score_ratio) {
        this.vehicle_score_ratio = vehicle_score_ratio;
    }

    public DateModel getTime_buying() {
        return time_buying;
    }

    public void setTime_buying(DateModel time_buying) {
        this.time_buying = time_buying;
    }

    public String getBrand_name() {
        return brand_name;
    }

    public void setBrand_name(String brand_name) {
        this.brand_name = brand_name;
    }

    public String getEngine_number() {
        return engine_number;
    }

    public void setEngine_number(String engine_number) {
        this.engine_number = engine_number;
    }

    public String getGps_situation() {
        return gps_situation;
    }

    public void setGps_situation(String gps_situation) {
        this.gps_situation = gps_situation;
    }

    public String getOrigin() {
        return origin;
    }

    public void setOrigin(String origin) {
        this.origin = origin;
    }

    public String getOwnership_person() {
        return ownership_person;
    }

    public void setOwnership_person(String ownership_person) {
        this.ownership_person = ownership_person;
    }

    public String getOwnership_tag() {
        return ownership_tag;
    }

    public void setOwnership_tag(String ownership_tag) {
        this.ownership_tag = ownership_tag;
    }

    public String getPlate_number() {
        return plate_number;
    }

    public void setPlate_number(String plate_number) {
        this.plate_number = plate_number;
    }

    public String getVehicle_grade() {
        return vehicle_grade;
    }

    public void setVehicle_grade(String vehicle_grade) {
        this.vehicle_grade = vehicle_grade;
    }

    public String getVehicle_id() {
        return vehicle_id;
    }

    public void setVehicle_id(String vehicle_id) {
        this.vehicle_id = vehicle_id;
    }

    public String getVehicle_situation() {
        return vehicle_situation;
    }

    public void setVehicle_situation(String vehicle_situation) {
        this.vehicle_situation = vehicle_situation;
    }

    public String getVehicle_type() {
        return vehicle_type;
    }

    public void setVehicle_type(String vehicle_type) {
        this.vehicle_type = vehicle_type;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj instanceof VehicleModel) {
            VehicleModel obj1 = (VehicleModel) obj;
            return (id==obj1.id);
        }
        return super.equals(obj);
    }
}
